Braces are used with if, else, for, do and while statements, even if the body contains only a single statement. Avoid using the following example: if (condition) statements;
<p>Examples:</p>
<pre>
    if (flag) {
            System.out.println("hello world");
    }
</pre>